/**
 * 
 */
package com.mywind.service.core.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mywind.dao.core.RoleDao;
import com.mywind.entity.core.Role;
import com.mywind.service.core.IRoleServ;

/**
 * @author A01162
 *
 */
@Service
public class RoleServ implements IRoleServ {
	@Autowired
	private RoleDao roleDao;
	
	/* (non-Javadoc)
	 * @see com.mywind.service.IRoleServ#getRolesSByUserId(int)
	 */
	@Override
	public List<Role> getRolesSByUserId(int userid) {
		return roleDao.getRolesSByUserId(userid);
	}

	/* (non-Javadoc)
	 * @see com.mywind.service.IRoleServ#getRolesSByUserAccount(java.lang.String)
	 */
	@Override
	public List<Role> getRolesSByUserAccount(String account) {
		return roleDao.getRolesSByUserAccount(account);
	}

}
